package com.hk.core.authentication.api;

import java.util.Map;
import java.util.concurrent.TimeUnit;

public interface TokenGenerator {

    String generateToken(Map<String, Object> claims, long ttl, TimeUnit unit);

    boolean verify(String token);

    Map<String, Object> getClaims(String token);
}
